package lab02.test13;

public class School extends ComputerAverage {
    //直接是总分除以总科目
    @Override
    double average(double[] scores) {
        double[] allAverage = {79, 80, 97, 79, 87};
        double sum = 0;
        for (int i = 0; i < 5; i++) {
            sum = sum + allAverage[i];
        }
        return sum / 5;
    }
}
